<?php
/**
 * 本地配置
 *
 * @author virowin<virowin@gmail.com>
 * @version 1.0 2011-3-25
 */

$CFG = array ();

$CFG['time_start'] = microtime(true);

//主目录,此配置文件的上一层目录
$CFG['root_path'] = dirname(dirname(__FILE__));
define("ROOT_PATH",$CFG['root_path']);
//应用程序及模版目录
$CFG['app_base_path'] = $CFG['root_path']."/Application/www";
$CFG['tpl_base_path'] = $CFG['root_path']."/Application/Tpl";

// 全局变量配置目录
$CFG['include_path'] = $CFG ['root_path'] . "/Include";

// 主要库文件目录
$CFG['lib_path'] = $CFG ['root_path'] . "/Lib";

//类库目录
$CFG['class_path'] = $CFG ['root_path'] . "/Application/Class";

//配置文件目录
$CFG['conf_path'] = $CFG ['root_path'] . "/Application/Conf";

//全局缓存目录
$CFG['cache_path'] = $CFG ['root_path'] . "/Application/Cache";

//日志记录
$CFG['log_path'] = $CFG ['root_path'] . "/Application/Log";

//xhprof
$CFG['xhprof_path'] = $CFG['app_base_path'] . "/xhprof";

//错误调试开关
$CFG ['is_online'] = 0;	#控制前端报错信息及debug信息输出
$CFG ['display_errors'] = 1 ;
$CFG ['error_level'] = E_ALL ^ E_NOTICE;

$CFG['use_cache'] = true;		//缓存,线上需要打开





